#include<iostream>
#include<cstring>
using namespace std;

int mystring(char str_1[], char str_2[]) {
	int n1 = 0, n2 = 0;

	while (str_1[n1] != '\0') {
		n1++;
	}


	while (str_2[n2] != '\0') {
		n2++;
	}
	if (n1 == n2) {
		return 0;
	} else {
		if (n1 < n2) {
			return -1;
		} else return 1;

	}
}


int main() {
	char str_1[200], str_2[200];
	cin >> str_1 >> str_2;
	int n;
	n = mystring(str_1, str_2);
	cout << n;
	return 0;
}
